#include "MainWindow.h"

MainWindow::MainWindow() {
    setWindowTitle("MNIST-GUI");
    setFixedSize(690, 580);
    canvas = new Canvas(this);
    btn = new QPushButton(this);
    btn->setGeometry(580, 10, 100, 50);
    btn->setText("Detect");
    clearBtn = new QPushButton(this);
    clearBtn->setGeometry(580, 70, 100, 50);
    clearBtn->setText("Clear");
    label = new QLabel(this);
    label->setGeometry(580, 130, 100, 50);
    label->setText("None");
    label->setStyleSheet("background-color: white;");
    label->setAlignment(Qt::AlignCenter);
    slider = new QSlider(this);
    slider->setGeometry(580, 200, 100, 30);
    slider->setMinimum(1);
    slider->setMaximum(100);
    slider->setValue(30);
    slider->setOrientation(Qt::Horizontal);
}

MainWindow::~MainWindow() {
    delete canvas;
    delete btn;
    delete clearBtn;
    delete label;
    delete slider;
}